package cn.web.web_module.controller;

import cn.web.web_module.entity.TbAdminRole;
import cn.web.web_module.service.TbAdminRoleService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (TbAdminRole)表控制层
 *
 * @author 小松
 * @since 2020-07-29 10:57:08
 */
@RestController
@RequestMapping("tbAdminRole")
public class TbAdminRoleController {

    private static final String PREFIX="/tbAdminRole/";
    /**
     * 服务对象
     */
    @Resource
    private TbAdminRoleService tbAdminRoleService;

    /**
     *      * 通过主键查询单条数据
     *      *
     *      * @param id 主键
     *      * @return 单条数据
     */
    @GetMapping("selectOne")
    public TbAdminRole selectOne(Integer id) {
        return this.tbAdminRoleService.queryById(id);
    }

}